<?php

/**
 * Radcodes - SocialEngine Module
 *
 * @category   Application_Extensions
 * @package    Badge
 * @copyright  Copyright (c) 2009-2010 Radcodes LLC (http://www.radcodes.com)
 * @license    http://www.radcodes.com/license/
 * @version    $Id$
 * @author     Vincent Van <vincent@radcodes.com>
 */

return array (// Package -------------------------------------------------------------------
'package' => array ('type' => 'module', 'name' => 'badge', 'version' => '4.0.0', 'path' => 'application/modules/Badge', 'repository' => 'radcodes.com', 'title' => 'Badge / Special / Awarded Members', 'description' => 'The plugin allows each user to be assigned badges which can be displayed as a series of iconic images on their profiles.', 'author' => 'Radcodes Developments', 

'actions' => array ('install', 'upgrade', 'refresh', 'enable', 'disable' ), 'callback' => array ('path' => 'application/modules/Badge/settings/install.php', 'class' => 'Badge_Installer' ), 'dependencies' => array ('radcodes' => array ('type' => 'module', 'name' => 'radcodes', 'minVersion' => '4.0.3' ) ), 'directories' => array ('application/modules/Badge' ), 'files' => array ('application/languages/en/badge.csv' ) ), // Hooks ---------------------------------------------------------------------
'hooks' => array (array ('event' => 'onStatistics', 'resource' => 'Badge_Plugin_Core' ), array ('event' => 'onUserDeleteBefore', 'resource' => 'Badge_Plugin_Core' ) ), // Items ---------------------------------------------------------------------
'items' => array ('badge', 'badge_category', 'badge_award', 'badge_request' ), // Routes --------------------------------------------------------------------
'routes' => array ('badge_extended' => array ('route' => 'badges/:controller/:action/*', 'defaults' => array ('module' => 'badge', 'controller' => 'index', 'action' => 'index' ), 'reqs' => array ('controller' => '\D+', 'action' => '\D+' ) ), 'badge_general' => array ('route' => 'badges/:action/*', 'defaults' => array ('module' => 'badge', 'controller' => 'index', 'action' => 'index' ), 'reqs' => array ('action' => '(index|browse|requests)' ) ), 'badge_specific' => array ('route' => 'badges/:action/:badge_id/*', 'defaults' => array ('module' => 'badge', 'controller' => 'index' ), 'reqs' => array ('action' => '(request)', 'badge_id' => '\d+' ) ), 'badge_profile' => array ('route' => 'badge/:badge_id/:slug/*', 'defaults' => array ('module' => 'badge', 'controller' => 'index', 'action' => 'view', 'slug' => '' ), 'reqs' => array ('badge_id' => '\d+' ) ), 'badge_request_general' => array ('route' => 'badges/requests/:action/*', 'defaults' => array ('module' => 'badge', 'controller' => 'request', 'action' => 'browse' ), 'reqs' => array ('action' => '(browse|create|view)' ) ), 'badge_award_browse' => array ('route' => 'badges/award/browse/*', 'defaults' => array ('module' => 'badge', 'controller' => 'award', 'action' => 'browse' ) ), 'badge_award_profile' => array ('route' => 'badges/award/view/:award_id/:slug/*', 'defaults' => array ('module' => 'badge', 'controller' => 'award', 'action' => 'view', 'slug' => '' ), 'reqs' => array ('award_id' => '\d+' ) ), 'badge_award_user' => array ('route' => 'badges/award/list/user/:user_id/*', 'defaults' => array ('module' => 'badge', 'controller' => 'award', 'action' => 'list' ), 'reqs' => array ('user_id' => '\d+' ) ) )

 );
